package pojo;// Employee.java
import java.util.Date;

public class Employee {
    private String employeeId;
    private String name;
    private String gender;
    private int age;
    private String department;
    private String position;
    private Date joinDate;
    private String phone;
    private String email;

    public Employee(String employeeId, String name, String gender, int age, String department,
                    String position, Date joinDate, String phone, String email) {
        this.employeeId = employeeId;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.department = department;
        this.position = position;
        this.joinDate = joinDate;
        this.phone = phone;
        this.email = email;
    }
    
    // getters 和 setters


    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getJoinDate() {
        return joinDate;
    }

    public void setJoinDate(Date joinDate) {
        this.joinDate = joinDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        // 这里简单用逗号分隔
        return employeeId + "," + name + "," + gender + "," + age + "," + department + "," +
               position + "," + joinDate + "," + phone + "," + email;
    }

    // 这里补充 getEmployeeId()、getName() 等方法
}
